<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<div id="content" class="col-lg-10 col-sm-10">
    <!-- content starts -->
    <div>
        <ul class="breadcrumb">
            <li>
                <a href="#">Home</a>
            </li>
            <li>
                <a href="#">Gallery</a>
            </li>
        </ul>
    </div>
    <div class="row">
        <div class="box col-md-12">
            <div class="box-inner">
                <div class="box-header well" data-original-title="">
                    <h2><i class="glyphicon glyphicon-edit"></i> Edit Faculty Details</h2>

                    <div class="box-icon">
                        <a href="#" class="btn btn-setting btn-round btn-default"><i
                                class="glyphicon glyphicon-cog"></i></a>
                        <a href="#" class="btn btn-minimize btn-round btn-default"><i
                                class="glyphicon glyphicon-chevron-up"></i></a>
                        <a href="#" class="btn btn-close btn-round btn-default"><i
                                class="glyphicon glyphicon-remove"></i></a>
                    </div>
                </div>
                <div class="box-content">
                    <form role="form" action="UpdateFacultyAction.do" method="post" onsubmit="return validate()">

                        <input type="hidden" name="id"  value="${sessionScope.detail.id}">
                        <div class="form-group">
                            <label for="exampleInputEmail1">First Name</label>
                            <input type="text" name="fname" class="form-control" id="exampleInputEmail1" placeholder="Enter First Name" value="${sessionScope.detail.fname}">
                            <span style="color: red" id="fname_error_txt"><html:errors property="fname" ></html:errors></span>
                        </div>
                        <div class="form-group">
                            <label for="exampleInputEmail1">Middle Name</label>
                            <input type="text" name="mname" class="form-control" id="exampleInputEmail1" placeholder="Enter Middle Name" value="${sessionScope.detail.mname}">
                            <span style="color: red" id="mname_error_txt"><html:errors property="mname" ></html:errors></span>
                        
                        </div>
                        <div class="form-group">
                            <label for="exampleInputEmail1">Last Name</label>
                            <input type="text" name="lname" class="form-control" id="exampleInputEmail1" placeholder="Enter Last Name" value="${sessionScope.detail.lname}">
                            <span style="color: red" id="lname_error_txt"><html:errors property="lname" ></html:errors></span>
                        </div>


                        <div class="form-group">
                            <label for="exampleInputEmail1">Gender</label>
                            <div class="radio">
                                <label>
                                    <input type="radio" name="gender" id="optionsRadios1" value="${sessionScope.detail.gender}" checked="" >
                                    Male
                                </label>
                            </div>
                            <div class="radio">
                                <label>
                                    <input type="radio" name="gender" id="optionsRadios1" value="${sessionScope.detail.gender}" checked="">
                                    Female
                                </label>
                            </div>
                                    <span style="color: red" id="gender_error_txt"><html:errors property="gender" ></html:errors></span>
                        </div>
                        <div class="form-group">
                            <label for="exampleInputEmail1">Email</label>
                            <input type="text" name="email" class="form-control" id="exampleInputEmail1" placeholder="Enter Email" value="${sessionScope.detail.email}">
                            <span style="color: red" id="email_error_txt"><html:errors property="email" ></html:errors></span>
                        </div>
<!--                        <div class="form-group">
                            <label for="exampleInputEmail1">Password</label>
                            <input type="text" name="password" class="form-control" id="exampleInputEmail1" placeholder="Enter Password">
                        </div>-->
                        <div class="form-group">
                            <label for="exampleInputEmail1">Address</label>
                            <input type="text" name="address" class="form-control" id="exampleInputEmail1" placeholder="Enter Address" value="${sessionScope.detail.address}">
                            <span style="color: red" id="address_error_txt"><html:errors property="address" ></html:errors></span>
                        </div>
                        <div class="form-group">
                            <label for="exampleInputEmail1">City</label>
                            <input type="text" name="city" class="form-control" id="exampleInputEmail1" placeholder="Enter City" value="${sessionScope.detail.city}">
                            <span style="color: red" id="city_error_txt"><html:errors property="city" ></html:errors></span>
                        </div>
                        <div class="form-group">
                            <label for="exampleInputEmail1">State</label>
                            <input type="text" name="f_state" class="form-control" id="exampleInputEmail1" placeholder="Enter State" value="${sessionScope.detail.f_state}">
                            <span style="color: red" id="state_error_txt"><html:errors property="state" ></html:errors></span>
                        </div>
                        
                        <div class="form-group">

                            <label>Date of Birth</label>
                            <input type="text" name="dateofbirth" id="optionsRadios1" value="${sessionScope.detail.dateofbirth}">

<!--                            <div>
                                Day
                                <select name="day">
                                    <c:forEach var="i" begin="1" end="31">
                                        <option>      <c:out value="${i}"/></option>
                                    </c:forEach>

                                </select>
                                Month

                                <select name="month">
                                    <c:forEach var="i" begin="1" end="12">
                                        <option>      <c:out value="${i}"/></option>
                                    </c:forEach>

                                </select>
                                Year
                                <select name="year">
                                    <c:forEach var="i" begin="1990" end="2020">
                                        <option>      <c:out value="${i}"/></option>
                                    </c:forEach>

                                </select>
                            </div>-->
                        </div>
                            <div class="form-group">

                            <label>Date of Join</label>
                            <input type="text" name="dateofjoin" id="optionsRadios1" value="${sessionScope.detail.dateofjoin}">
                           <!--<div>
                                Day
                                <select name="day">
                                    <c:forEach var="i" begin="1" end="31">
                                        <option>      <c:out value="${i}"/></option>
                                    </c:forEach>

                                </select>
                                Month

                                <select name="month">
                                    <c:forEach var="i" begin="1" end="12">
                                        <option>      <c:out value="${i}"/></option>
                                    </c:forEach>

                                </select>
                                Year
                                <select name="year">
                                    <c:forEach var="i" begin="1990" end="2020">
                                        <option>      <c:out value="${i}"/></option>
                                    </c:forEach>

                                </select>                    
                        </div>-->
                           <br>
                           <div class="form-group">
                        <label for="exampleInputEmail1">Qualification</label>
                        <input type="text" name="qualification" class="form-control" id="exampleInputEmail1" placeholder="Enter Qualification">
                        <span style="color: red" id="qualification_error_txt"><html:errors property="qualification" ></html:errors></span>
                    </div>
                            <div class="form-group">
                        <label for="exampleInputEmail1">Designation</label>
                        
                        <div>
                            
                        <select name="designation">
                            
                                <option>Head Of Department</option>
                                <option>Associated Professor</option>
                                <option>Professor</option>
                                <option>Assistant Professor</option>
                                <option>Ad-Hoc</option>
                                <option>Visiting Faculty</option>
                            
                                
                        </select>
                        
                    </div>
                    </div>
                        <div class="form-group">
                            <label for="exampleInputEmail1">Contact Number</label>
                            <input type="text" name="contact" class="form-control" id="exampleInputEmail1" placeholder="Enter Contact" value="${sessionScope.detail.contact}">
                            <span style="color: red" id="contact_error_txt"><html:errors property="contact" ></html:errors></span>
                        </div>
                        
                       
                    

                        
                           
                        <div class="form-group">
                            <button type="submit" class="btn btn-default">Submit</button>
                    </form>


                </div>
            </div>
            <!--/span-->

        </div><!--/row-->

        <!-- content ends -->
    </div><!--/#content.col-md-0-->
</div>
</div>